﻿namespace WMS6.Web.CommonMethodServiceRef
{
    using System;
    using System.CodeDom.Compiler;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Runtime.CompilerServices;
    using System.Runtime.Serialization;

    [Serializable, GeneratedCode("System.Runtime.Serialization", "3.0.0.0"), DebuggerStepThrough, DataContract(Name="WareHouseName4DDL", Namespace="http://schemas.datacontract.org/2004/07/WMS6.DataEntity")]
    public class WareHouseName4DDL : IExtensibleDataObject, INotifyPropertyChanged
    {
        [OptionalField]
        private string DbLoginIDField;
        [NonSerialized]
        private ExtensionDataObject extensionDataField;
        [OptionalField]
        private string WhDbDescField;
        [OptionalField]
        private int WhDbIDField;

        public event PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName)
        {
            PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if (propertyChanged != null)
            {
                propertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        [DataMember]
        public string DbLoginID
        {
            get
            {
                return this.DbLoginIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.DbLoginIDField, value))
                {
                    this.DbLoginIDField = value;
                    this.RaisePropertyChanged("DbLoginID");
                }
            }
        }

        [Browsable(false)]
        public ExtensionDataObject ExtensionData
        {
            get
            {
                return this.extensionDataField;
            }
            set
            {
                this.extensionDataField = value;
            }
        }

        [DataMember]
        public string WhDbDesc
        {
            get
            {
                return this.WhDbDescField;
            }
            set
            {
                if (!object.ReferenceEquals(this.WhDbDescField, value))
                {
                    this.WhDbDescField = value;
                    this.RaisePropertyChanged("WhDbDesc");
                }
            }
        }

        [DataMember]
        public int WhDbID
        {
            get
            {
                return this.WhDbIDField;
            }
            set
            {
                if (!this.WhDbIDField.Equals(value))
                {
                    this.WhDbIDField = value;
                    this.RaisePropertyChanged("WhDbID");
                }
            }
        }
    }
}

